package com.study.modules.mini.repository.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.modules.mini.repository.model.WxUserDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Author hupengming
 * @ClassName WxUserDao
 * @Date 2022-12-01  14:29
 * @Version 1.0
 */
@Mapper
public interface WxUserDao extends BaseMapper<WxUserDO> {

    @Select("select * from wx_user where open_id = #{openId}")
    WxUserDO selectUserByOpenId(@Param("openId") String openId);
}
